using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Framework.Library.Components.Security;
using Framework.Library.Components.Commands;
using Framework.Library;

namespace Framework.Portal.Administrator.SystemInfomation
{
    public partial class Infomation : AuthenticatedControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if ((!CurrentUser.IsSuperAdmin && CommandController.IsSystemModule(AppEnv.CommandID())) || !CommandController.IsAvailableForUser(AppEnv.CommandID(), CurrentUser.UserID, Convert.ToInt32(AppEnv.PortalId())))
                Response.Redirect(AppEnv.ADMIN_CMD, true);
            if (!Page.IsPostBack)
            {
                
            }
        }

        private void LoadUserControl(string control)
        {
            Control con = Page.LoadControl(control);
            plhInformation.Controls.Clear();
            plhInformation.Controls.Add(con);
        }

        protected void btnServer_Click(object sender, EventArgs e)
        {

        }

        protected void btnDatabase_Click(object sender, EventArgs e)
        {
            LoadUserControl("/Administrator/SystemInfomation/Database/Infomation.ascx");
        }

        protected void btndotNET_Click(object sender, EventArgs e)
        {

        }
    }
}